/** 2021-09-30 15:35
 *作者:岳宗鲁
 *功能: 设置跨域
 */
module.exports = {
  devServer: {
    host: 'localhost',
    port: '8080',
    https: false,
    hotOnly: false,
    proxy: {
      '/api': {
        target: 'http://tp6.com/admin/',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
}
